/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'
// 员工的路由规则
export default {
  path: '/setting',
  // name: '/setting',
  component: Layout,
  redirect: '/setting/pointsManagement',
  meta: { title: '我是2', icon: 'el-icon-s-help', role: [2] },
  children: [
    {
      path: 'pointsManagement',
      component: () => import('@/views/table/pointsManagement'),
      name: 'pointsManagement',
      meta: {
        title: '我是4',
        icon: 'el-icon-menu',
        role: [4]
      },
      children: [
        {
          path: 'pointsManagement',
          component: () => import('@/views/table/pointsManagement'),
          name: 'pointsManagement',
          meta: {
            title: '我是401',
            icon: 'el-icon-menu',
            role: [401]
          }
        },
        {
          path: 'points',
          name: 'points',
          component: () => import('@/views/table/pointsManagement'),
          meta: { title: '我是405', icon: 'el-icon-menu', role: [405] }
        }
      ]
    },
    {
      path: 'points',
      name: 'points',
      component: () => import('@/views/table/pointsManagement'),
      meta: { title: '我是402', icon: 'el-icon-menu', role: [402] }
    }
  ]
}
